<?php
/**
 * @package YEAP project's Helpers subsystem
 * @name WEB helpers
 *
 * @license GPL v.2
 * @copyright (cc) VS aka Virtual Stalker, 2009
 * 	call@2128506.su
 *
 * */
if (! function_exists('_header') )
{
	$GLOBALS['_header'] = array();
	function _header($str=true)
	{
		if (is_string($str))
			$GLOBALS['_header'][] = $str;
		else
			foreach( $GLOBALS['_header'] as $h )
				header($h);

		return $str;
	}
}
if (! function_exists('_title') )
{
	$GLOBALS['_title'] = array();
	function _title($str=true)
	{
		if (is_string($str))
			$GLOBALS['_title'][] = $str;
		else
			$str = implode(". ",$GLOBALS['_title']);

		return $str;
	}
}
if (! function_exists('_meta') )
{
	$GLOBALS['_meta'] = array();
	function _meta($str=true)
	{
		if (is_string($str))
			$GLOBALS['_meta'][] = $str;
		else
			$str = implode("\r\n",$GLOBALS['_meta']);

		return $str;
	}
}
if (! function_exists('_link') )
{
	$GLOBALS['_link'] = array();
	function _link($str=true)
	{
		if (is_string($str))
			$GLOBALS['_link'][] = $str;
		else
			$str = implode("\r\n",$GLOBALS['_link']);

		return $str;
	}
}
if (! function_exists('_style') )
{
	$GLOBALS['_style'] = array();
	function _style($str=true)
	{
		if (is_string($str))
			$GLOBALS['_style'][] = $str;
		else
			$str = implode("\r\n",$GLOBALS['_style']);

		return $str;
	}
}
if (! function_exists('_css') )
{
	$GLOBALS['_css'] = array();
	function _css($str=true)
	{
		if (is_string($str))
			$GLOBALS['_css'][] = $str;
		else
			$str = implode("\r\n",$GLOBALS['_css']);

		return $str;
	}
}
if (! function_exists('_script') )
{
	$GLOBALS['_script'] = array();
	function _script($str=true)
	{
		if (is_string($str))
			$GLOBALS['_script'][] = $str;
		else
			$str = implode("\r\n",$GLOBALS['_script']);

		return $str;
	}
}
/*
if (! function_exists('_') )
{
	$GLOBALS['_'] = array();
	function _($str=true)
	{
		if (is_string($str))
			$GLOBALS['_'][] = $str;
		else
			$str = implode("\r\n",$GLOBALS['_']);

		return $str;
	}
}
*/
?>